package com.company.project.util;

import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;

public class ZhengZeUtils {

    public static Map<String,Object> ZhengZe(Map<String,Object>map, String s, List list, String feedback){
        if(s.contains("[Z]")){
            map.put("text",s);
            map.put("state","true");
            map.put("feedback",feedback);
            map.put("erro",list);
        }else if(feedback.equals("文献类型错误")){
            map.put("text",s);
            map.put("state","false");
            map.put("feedback",feedback);
            map.put("erro",list);
        }
        else {
            map.put("text",s);
            map.put("state","true");
            map.put("feedback",feedback);
            map.put("erro",list);
        }
        return map;
    }
}
